/***************************************************************************
 *   Copyright (C) 2007 by shinda   *
 *   shinda@gmail.com   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#ifndef SHABADVIEW_H
#define SHABADVIEW_H

#include <QWidget>
#include <QtCore>

class QTextEdit;
class QSplitter;
class QGroupBox;
class QVBoxLayout;
class QString;
class QRadioButton;
class QButtonGroup;
class QHBoxLayout;
class QVBoxLayout;
class QGroupBox;

class ShabadView : public QWidget
{
	Q_OBJECT

public:
	ShabadView(QWidget * parent=0);
	ShabadView(const int, QWidget * parent=0);	
	~ShabadView();

	QSplitter *splDivider;

public slots:
	void loadShabad(int);

private:
	//Functions
	void createGui();
	void createOptions();
	void setConnections();

	QString getSQL(const int);
	QFont *fntGurmukhi;
	QFont *fntEnglish;
	int ShabadID;

	//Variables
	QGroupBox *grpDisplayOptions;
	QTextEdit *txtView;

	QHBoxLayout *hblOptions;
	
	QVBoxLayout *vblGroup1;

	QGroupBox *grpView;
	QHBoxLayout *hblView;
	QButtonGroup *rgView;
	QRadioButton *radTukh;
	QRadioButton *radShabad;
	QRadioButton *radPage;

	QGroupBox *grpFormat;
	QHBoxLayout *hblFormat;
	QButtonGroup *rgFormat;
	QRadioButton *radClassic;
	QRadioButton *radParagraph;
	QRadioButton *radContinous;
	
	QVBoxLayout *vblGroup2;

	QGroupBox *grpDisplay;
	QHBoxLayout *hblDisplay;
	QButtonGroup *rgDisplay;
	QRadioButton *radPaad;
	QRadioButton *radLardivaar;
	

	
	QVBoxLayout *layout;

private slots:
	void updateDisplay();	
};

#endif
